package com.bw.a1908.uitls.gfit.impl;

import android.content.Context;

import com.bw.a1908.uitls.gfit.GiftBean;

/**
 * 礼物工厂类
 */
public class GiftFactory implements IGiftFactory {

    @Override
    public IGiftView create(Context context, GiftBean giftBean) {
        switch (giftBean.type) {
            default:
                return new GiftDefView(context);
        }
    }

    private static GiftFactory factory;

    public static GiftFactory getInstance() {
        if (factory == null) {
            factory = new GiftFactory();
        }
        return factory;
    }

}
